package com.wang.system.domain.exam.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Setter
@Getter
public class ExamAddDTO {

    @Schema(description = "竞赛标题")
    @NotNull(message = "竞赛标题不可为空")
    private String title;

    @Schema(description = "竞赛开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "竞赛开始时间不可为空")
    private LocalDateTime startTime;

    @Schema(description = "竞赛结束时间")
    @NotNull(message = "竞赛结束时间不可为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}
